<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>微信支付</title>
    <style type="text/css">
        *{ margin:0; padding:0}
        .wihe-ee{width:307px; height:348px; background:#FFF; padding:25px; color:#666; font-family:song,arial; font-size:14px; box-sizing:border-box; border-radius:6px; margin:0 auto; margin-top:10%}
        .wihe-ee p{text-align:center}
        .fo-si-18{font-size:18px}
        .fail-fasu a:hover{ background-color:#ee9775}
        .fail-fasu a{padding:8px 24px; background-color:#f8a584; display:table; margin:0 auto; color:#fff; text-decoration:none; margin-top:10px}
        .re-qtzfgg a,.success-fasu a{padding:8px 24px; background-color:#eee; display:table; margin:0 auto; color:#999; text-decoration:none; margin-top:10px}
        .re-qtzfgg a{padding:8px 140px}
        .re-qtzfgg a:hover,.success-fasu a:hover{background-color:#ddd;}
        .fail-success{overflow:hidden; height:200px}
        .fail-I-success img{width:200px;height:200px}
    </style>
</head>
<script type="text/javascript" src="/api/wxpay/jquery.min.js"></script>
<?php if($orderid){?>
    <script type="text/javascript">
        $(document).ready(function () {
            setInterval("ajaxstatus()", 3000);
        });
        function ajaxstatus() {
            // $.get("updatestate.php?act=GetOrder&orderid=<?php echo $orderid;?>",null,function(data){
            $.get("Home-Ajax-Updatestate-orderid-<?php echo $orderid;?>",null,function(data){
                if(data==3){
                    window.top.location.href = "<?php echo"{$baseurl}/{$sys_succeurl}";?>"; //支付成功后的页面跳转
                }
            });
        }
    </script>
<?php }?>
<body style="background-color:black">
<div class="tac-sd">
    <div class="wihe-ee">
        <p>
            <span class="fo-si-18">请通过手机微信扫码完成支付!</span>
                <?php //print_r($arr);?>
        </p>
        <div style="text-align:center;font-size:18px;color:red">支付金额：<?php echo $money?>元</div>
        <div class="fail-success" style="text-align: center;margin-top: 20px">
            <!-- <img  src="qr/?url=<?php echo $arr['code_url']?>" style="width:200px;height:200px;"/> -->
            <img  src="/api/wxpay/qr/?url=<?php echo $arr['code_url']?>" style="width:200px;height:200px;"/>
        </div>
    </div>
</div>
</body>
</html>